# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
pkgname=mkinitcpio-netconf
pkgver=0.0.5
pkgrel=2
pkgdesc="Archlinux mkinitcpio hook for configuring early userspace networking"
arch=('any')
url="https://github.com/grazzolini/mkinitcpio-netconf"
license=('BSD')
depends=('mkinitcpio-nfs-utils' 'iproute2')
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
changelog='Changelog'
sha512sums=('b2460c7b5d963613c3df83249e73b4e8fe70818c3928c051a77bc28f7d58bb30bfa844394f0547d73e4422fa152c87a961036721bc29e9c3b1ced88528ae10d8')

package() {
  install -Dm644 "$srcdir/$pkgname-$pkgver/netconf_hook"        "$pkgdir/usr/lib/initcpio/hooks/netconf"
  install -Dm644 "$srcdir/$pkgname-$pkgver/netconf_install"     "$pkgdir/usr/lib/initcpio/install/netconf"
  install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE"             "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

}
